package ex1.game.players;

import ex1.game.Action;
import ex1.game.Player;
import ex1.game.PrisonersDilemmaGame;
import ex1.utils.Utils;


public class RandomPlayer implements Player {
	
	@Override
	public Action playGame(PrisonersDilemmaGame game,
			Action otherPlayerLastAction) {

		return Action.getAction(Utils.RandomGenerator().nextBoolean());
	}
	
	@Override
	public String toString()
	{
		return "RandomPlayer";
	}

}
